import request from '@/utils/request'

// 查询货品信息列表
export function listYiqiMerchandise(query) {
  return request({
    url: '/trace/yiqiMerchandise/list',
    method: 'get',
    params: query
  })
}

// 查询货品信息详细
export function getYiqiMerchandise(id) {
  return request({
    url: '/trace/yiqiMerchandise/' + id,
    method: 'get'
  })
}

// 新增货品信息
export function addYiqiMerchandise(data) {
  return request({
    url: '/trace/yiqiMerchandise',
    method: 'post',
    data: data
  })
}

// 修改货品信息
export function updateYiqiMerchandise(data) {
  return request({
    url: '/trace/yiqiMerchandise',
    method: 'put',
    data: data
  })
}

// 删除货品信息
export function delYiqiMerchandise(id) {
  return request({
    url: '/trace/yiqiMerchandise/' + id,
    method: 'delete'
  })
}
